package br.com.troca.carro.facade;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import br.com.troca.carro.dao.ModeloDAO;
import br.com.troca.carro.vo.Modelo;

@Service
@Transactional(propagation=Propagation.REQUIRED)
public class ModeloFacadeImpl implements ModeloFacade {

	@Autowired
	private ModeloDAO modeloDAO;
	
	@Override
	public void incluir(Modelo objeto) {
		modeloDAO.incluir(objeto);
	}

	@Override
	public void alterar(Modelo objeto) {
		modeloDAO.alterar(objeto);
	}

	@Override
	public void excluir(Modelo objeto) {
		modeloDAO.excluir(objeto);
	}

}
